public class Test111 {
    /**
     *
     * @param text
     * @return
     */
    public static String encrypt(String text) {
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < text.length(); i++) {
            sb.append(  (char) (text.charAt(i) ^ 'k') );
        }
        System.out.println("sb1:"+sb);
        return sb.toString();
    }

    public static void main(String[] args) {
        String s = "hello world";
        System.out.println("s:"+s);
        s = encrypt(s);
        System.out.println("s:"+s);
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < s.length(); i++) {
            sb.append( (char) (s.charAt(i) ^ 'k'));
        }
        System.out.println("sb2:"+sb);
    }
}
